/**
 *
 */
import React, { Component, PropTypes } from "react";
import Preview from "./index";

class PreviewList extends Component {
  static propTypes = {
    articleList: PropTypes.arrayOf(PropTypes.object)
  };
  render() {
    const { articleList } = this.props;
    return articleList.map(item => <Preview {...item} key={item.id} />);
  }
}

export default PreviewList;
